package com.mchange.v2.log;

import java.util.logging.Level;

import com.mchange.v2.log.MLevel;

/** 
* 为减少c3p0日志而添加的类，不要修改包名 
*/ 
public class ModifyC3p0LogLevel {
	public static void modifyInfoLevel(Level level) {
		//方法1
		MLevel.INFO.level = level;
		//方法2有效
		System.setProperty("com.mchange.v2.log.MLog", "com.mchange.v2.log.FallbackMLog");
		System.setProperty("com.mchange.v2.log.FallbackMLog.DEFAULT_CUTOFF_LEVEL","OFF");
	}

}
